#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<string.h>
int main()
{
    int count = 0;
    char arr[10000];
    gets(arr);
    int lenght = strlen(arr);
    for (int i = 0;i < lenght;i++)
    {
        if (arr[i] <= '9' && arr[i] >= '0')
            count++;
        if (arr[i] >= 'a' && arr[i] <= 'z')
            count++;
        if (arr[i] >= 'A' && arr[i] <= 'Z')
            count++;
    }
    printf("%d", count);
    return 0;
}